<template>
  <div class="draggable-container" v-draggable>
    <div v-draggable-child class="draggable-child" :style="childStyle"></div>
    <div>
      <slot name="content"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "draggable",
  components: {},
  props: {
    childStyle: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.draggable-container {
  position: absolute;
  .draggable-child {
    position: absolute;
    z-index: 3;
  }
}
</style>
